<template>
  <div class="cell" @click="onclick">
        <div class="cell-left">
            <div class="line"></div>
            <div class="unit-name">{{listItem.name}}</div>
            <div class="desc" v-if="listItem.name == '大学'">(大中专院校、技校、职校)</div>
        </div>
        <div class="cell-right" v-if="listItem.basicCompany && listItem.basicCompany !== 0">
            <div class="text"><span v-if="rightTextShow=='1'">基层单位</span>({{listItem.basicCompany}})</div>
            <img class="jiantou" src="/static/images/icon_left.png">
        </div>
  </div>
</template>

<script>
export default {
    props:{
        listItem:{
            type: Object,
            default: {}
        },
        rightTextShow:{
            type: String,
            default: "1"
        }
    },
    methods:{
        onclick(){
            this.$emit("getData",this.listItem)
        },
        onclick1(){

        }
    }
}
</script>

<style lang="scss" scoped>
    .cell{
        height:90rpx;
        line-height: 90rpx;
        padding: 0 32rpx;
        background-color: #fff;
        box-shadow:0px 7rpx 12rpx 1rpx rgba(195,195,195,0.33);
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5rpx;
        .cell-left{
            display: flex;
            justify-content: flex-start;
            align-items: center;
            .line{
                width:4rpx;
                height:22rpx;
                background:rgba(87,87,87,1);
            }
            .unit-name{
                font-size:28rpx;
                font-weight:bold;
                color:rgba(87,87,87,1);
                line-height:68rpx;
                margin-left: 8rpx;
            }
            .desc{
                font-size:22rpx;
                font-weight:500;
                color:rgba(152,152,152,1);
                margin-right: 8rpx;
            }
        }
        .cell-right{
            display: flex;
            justify-content: flex-end;
            align-items: center;
            .text{
                font-size:24rpx;
                font-weight:500;
                color:rgba(152,152,152,1);
                margin-right: 8rpx;
            }
            >img{
                width:8rpx;
                height:13rpx;
            }
        }
    }
</style>